//
//  BYAddImageViewImageCollectionViewCell.h
//  ZhaoQiPei
//
//  Created by 找汽配 on 16/2/29.
//  Copyright © 2016年 祥运. All rights reserved.
//

#import <UIKit/UIKit.h>

static NSString * const kXYImageSelectCollectionViewCellReuseIdentifier = @"XYImageSelectCollectionViewCell";

@class XYImageSelectModel;
@protocol XYImageSelectCollectionViewCellDelegate;

@interface XYImageSelectCollectionViewCell : UICollectionViewCell

@property (nonatomic, assign, getter=isEditEnabled) BOOL editEnabled; // 是否可编辑
@property (nonatomic, weak) id<XYImageSelectCollectionViewCellDelegate> delegate;

- (void)reloadData:(id)entity;
- (void)setSelectImage:(UIImage *)selectImage;
- (void)setDeleteImage:(UIImage *)deleteImage;

@end

@protocol XYImageSelectCollectionViewCellDelegate <NSObject>

- (void)imageSelectCollectionViewCellShouldSelectImage;
- (void)imageSelectCollectionViewCellShouldDeleteImageWithImageSelectModel:(XYImageSelectModel *)model;

@end
